75bef676de2d93f72f83287b7b03c4432c791822,security/src/main/java/com/continuuity/security/auth/DistributedKeyManager.java,DistributedKeyManager,DistributedKeyManager,#CConfiguration#Codec#ZKClient#,63
Before Change
super(conf);
this.parentZNode = conf.get(Constants.Security.DIST_KEY_PARENT_ZNODE);
this.keyExpirationPeriod = conf.getLong(Constants.Security.TOKEN_DIGEST_KEY_EXPIRATION);
this.tokenExpiration = conf.getLong(Constants.Security.TOKEN_EXPIRATION);
this.zookeeper = ZKClients.namespace(zookeeper, parentZNode);
this.keyCache = new SharedResourceCache<KeyIdentifier>(zookeeper, codec, "/keys");
}
After Change
super(conf);
this.parentZNode = conf.get(Constants.Security.DIST_KEY_PARENT_ZNODE);
this.keyExpirationPeriod = conf.getLong(Constants.Security.TOKEN_DIGEST_KEY_EXPIRATION);
this.maxTokenExpiration = Math.max(
conf.getLong(Constants.Security.EXTENDED_TOKEN_EXPIRATION),
conf.getLong(Constants.Security.TOKEN_EXPIRATION));
this.zookeeper = ZKClients.namespace(zookeeper, parentZNode);
this.keyCache = new SharedResourceCache<KeyIdentifier>(zookeeper, codec, "/keys");
}